<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<!--头部导航栏-->
<div class="layui-header" th:fragment="topber">
    <div class="layui-logo layui-hide-xs layui-bg-black">欢迎登录：[[${session.loginUser}]]</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
            <i class="layui-icon layui-icon-spread-left"></i>
        </li>

        <li class="layui-nav-item layui-hide-xs"><a href="">nav 1</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="">nav 2</a></li>
        <li class="layui-nav-item layui-hide-xs"><a href="">nav 3</a></li>

    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-md-inline-block">
            <a href="javascript:;">
                <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                [[${session.loginUser}]]
            </a>
            <dl class="layui-nav-child">
                <dd><a href="">用户资料</a></dd>
                <dd><a href="">设置</a></dd>
                <dd><a href="/user/logout">退出登录</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
            <a href="javascript:;">
                <i class="layui-icon layui-icon-more-vertical"></i>
            </a>
        </li>
    </ul>
</div>

<!--左侧导航栏-->
<div class="layui-side layui-bg-black" th:fragment="sidebar">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
            <li th:class="${active=='main.html'?'layui-this layui-nav-item':'layui-nav-item'}"><a th:href="@{/main.html}">主页</a></li>
            <li class="layui-nav-item"><a href="javascript:;">整理</a></li>
            <li class="layui-nav-item"><a href="javascript:;">商店</a></li>
            <li th:class="${active=='list.html'?'layui-this layui-nav-item':'layui-nav-item'}"><a href="emps">员工信息</a></li>
            <li class="layui-nav-item"><a href="javascript:;">商店</a></li>
            <li class="layui-nav-item"><a href="javascript:;">click menu item</a></li>
            <li class="layui-nav-item"><a href="">the links</a></li>
        </ul>
    </div>
</div>

<!--测试-->
<div class="layui-side layui-bg-black" th:fragment="test">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
            <li class="layui-nav-item layui-nav-itemed">
                <a class="" href="javascript:;">menu group 1</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;">menu 1</a></dd>
                    <dd><a href="javascript:;">menu 2</a></dd>
                    <dd><a href="javascript:;">menu 3</a></dd>
                    <dd><a href="">the links</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">menu group 2</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;">list 1</a></dd>
                    <dd><a href="javascript:;">list 2</a></dd>
                    <dd><a href="">超链接</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="javascript:;">click menu item</a></li>
            <li class="layui-nav-item"><a href="">the links</a></li>
        </ul>
    </div>
</div>

<!--底部栏-->
<div class="layui-footer" th:fragment="footerbar">
    <!-- 底部固定区域 -->
    一切版权归 &copy;雁迟 所有！
</div>

</body>
</html>